package com.media
{import flash.display.Sprite;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    import flash.events.*;
    import flash.media.Sound;
    import flash.media.SoundChannel;
    import flash.media.SoundTransform;
    import flash.net.URLRequest;
    import flash.utils.Timer;

    public class LoadSound extends Sprite {
        public function LoadSound() {
            var mySound:Sound = new Sound();
            var url:URLRequest = new URLRequest("arcs.mp3");
            var channel:SoundChannel;
            var transform:SoundTransform = new SoundTransform(1.0,0.5);

            mySound.load(url);
            channel = mySound.play();
            channel.soundTransform = transform;

            mySound.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
        }

        private function errorHandler(errorEvent:IOErrorEvent):void {
            trace("The sound could not be loaded: " + errorEvent.text);
        }

    }

}